// get请求与post请求略有不同，get请求所有参数都在方法的第二个参数中，而post请求的第二个参数为请求参数params，而第三个参数才为配置项。
// 约定： get请求 参数和配置 统一使用data字段  post请求 参数params 配置 config

const http = uni.$u.http;

const VERSION = "v2";
const PLATEFORMSCHOOLFAMILY = "school-family";

// 家长端的成绩分页列表
export const studentPage = (data) =>
	http.get(
		`/${PLATEFORMSCHOOLFAMILY}/${VERSION}/exam/student/page`, { data }
	);

// 家长端的年级考试总体成绩单
export const studentGradeResult = (examStudentId) =>
	http.get(
		`/${PLATEFORMSCHOOLFAMILY}/${VERSION}/exam/student/grade/result/${examStudentId}`
	);

// 家长端的单科详情
export const studentSingle = (studentResultId) =>
	http.get(
		`/${PLATEFORMSCHOOLFAMILY}/${VERSION}/exam/student/single/${studentResultId}`
	);

// 家长端的年级考试成绩分析-整体分析
export const analysisAll = (data) =>
	http.get(
		`/${PLATEFORMSCHOOLFAMILY}/${VERSION}/exam/student/analysis/all`, { data }
	);

// 家长端的年级考试成绩分析-单科分析-整体分析
export const analysisSingle = (data) =>
	http.get(
		`/${PLATEFORMSCHOOLFAMILY}/${VERSION}/exam/student/analysis/single`, { data }
	);
